import {useState,useEffect} from 'react'
function useModalHooks(){

    const [modalVisible,setModalVisible] = useState(false)

    const openModal = function(){
        setModalVisible(true)
    }
    const closeModal = function(){
        setModalVisible(false)
    }

    return {
        modalVisible,
        setModalVisible,
        openModal,
        closeModal
    }
}

export default useModalHooks;